/*jslint browser: true, windows: true, es5: true, nomen: false, plusplus: false, maxerr: 500, indent: 2*/
/*global hidato: false */

hidato.data =
  [
    {
      name: 1,
      nRows: 8,
      nCols: 8,
      level: 8,
      start: [
        [2, 1, 0, 0, 0, -2, -2, -2],
        [0, 0, 5, 6, 0, -2, -2, -2],
        [0, 30, 0, 0, 0, 11, -2, -2],
        [0, 26, 0, 13, 0, 20, -2, -2],
        [0, 0, 0, 0, 16, 0, 0, -2],
        [-2, -2, 24, 0, 22, 0, 18, -2],
        [-2, -2, -2, -2, 0, 36, 0, 38],
        [-2, -2, -2, -2, -2, -2, 40, 0]
      ],
      solution: [
        [2, 1, 7, 8, 9, -2, -2, -2],
        [3, 4, 5, 6, 10, -2, -2, -2],
        [29, 30, 31, 14, 12, 11, -2, -2],
        [28, 26, 32, 13, 15, 20, -2, -2],
        [27, 25, 33, 23, 16, 21, 19, -2],
        [-2, -2, 24, 34, 22, 17, 18, -2],
        [-2, -2, -2, -2, 35, 36, 37, 38],
        [-2, -2, -2, -2, -2, -2, 40, 39]
      ]
    },
    {
      name: 2,
      nRows: 8,
      nCols: 8,
      level: 8,
      start: [
        [-2, -2, 0, 0, 27, 0, -2, -2],
        [-2, 0, 0, 6, 0, 8, 0, -2],
        [0, 0, -3, -3, 9, 30, 33, 32],
        [3, 0, -3, 11, 0, 46, 0, 0],
        [0, 0, 1, 13, 0, -3, 0, 0],
        [19, 0, 0, 14, -3, -3, 0, 0],
        [-2, 0, 0, 40, 42, 0, 0, -2],
        [-2, -2, 0, 0, 0, 0, -2, -2]
      ],
      solution: [
        [-2, -2, 25, 26, 27, 28, -2, -2],
        [-2, 24, 5, 6, 7, 8, 29, -2],
        [23, 4, -3, -3, 9, 30, 33, 32],
        [3, 22, -3, 11, 10, 46, 31, 34],
        [21, 2, 1, 13, 12, -3, 45, 35],
        [19, 20, 15, 14, -3, -3, 44, 36],
        [-2, 18, 16, 40, 42, 43, 37, -2],
        [-2, -2, 17, 41, 39, 38, -2, -2]
      ]
    },
    {
      name: 3,
      nRows: 9,
      nCols: 9,
      level: 10,
      start: [
        [0, 0, 57, 0, 0, 0, 0, 0, 1],
        [60, 61, 0, 8, 55, 6, 53, 3, 2],
        [13, 0, 0, 0, 0, 0, 0, 0, 0],
        [0, 10, 0, 0, 51, 0, 27, 0, 30],
        [0, 15, 0, 0, 0, 0, 0, 32, 0],
        [0, 69, 0, 67, 0, 0, 41, 0, 0],
        [0, 0, 0, 0, 22, 0, 47, 0, 0],
        [74, 73, 0, 0, 0, 46, 0, 0, 36],
        [0, 0, 72, 0, 80, 81, 0, 0, 38]
      ],
      solution: [
        [59, 58, 57, 56, 7, 54, 5, 4, 1],
        [60, 61, 62, 8, 55, 6, 53, 3, 2],
        [13, 12, 9, 63, 64, 52, 26, 28, 29],
        [14, 10, 11, 65, 51, 25, 27, 31, 30],
        [16, 15, 68, 66, 24, 50, 49, 32, 33],
        [17, 69, 20, 67, 23, 42, 41, 48, 34],
        [18, 19, 70, 21, 22, 43, 47, 40, 35],
        [74, 73, 77, 71, 79, 46, 44, 39, 36],
        [75, 76, 72, 78, 80, 81, 45, 37, 38]
      ]
    },
    {
      name: 4,
      nRows: 10,
      nCols: 10,
      level: 10,
      start: [
        [-2, -2, 0, -2, -2, -2, -2, 0, -2, -2],
        [-2, 0, 58, 0, -2, -2, 28, 0, 0, -2],
        [0, 56, 0, 0, 0, 0, 0, 31, 0, 0],
        [0, 63, -4, -4, 35, 0, -4, -4, 0, 25],
        [64, 0, -4, -4, 41, 37, -4, -4, 0, 21],
        [0, 51, 43, 0, 0, 0, 0, 3, 1, 0],
        [0, 0, 0, 44, 8, 0, 0, 0, 0, 0],
        [-2, 49, 0, -4, 9, 6, -4, 17, 0, -2],
        [-2, -2, 48, 0, -4, -4, 15, 0, -2, -2],
        [-2, -2, -2, 0, 0, 0, 0, -2, -2, -2]
      ],
      solution: [
        [-2, -2, 59, -2, -2, -2, -2, 29, -2, -2],
        [-2, 57, 58, 60, -2, -2, 28, 27, 30, -2],
        [55, 56, 62, 61, 34, 33, 32, 31, 26, 24],
        [54, 63, -4, -4, 35, 36, -4, -4, 23, 25],
        [64, 53, -4, -4, 41, 37, -4, -4, 22, 21],
        [52, 51, 43, 42, 40, 39, 38, 3, 1, 20],
        [50, 46, 45, 44, 8, 7, 5, 4, 2, 19],
        [-2, 49, 47, -4, 9, 6, -4, 17, 18, -2],
        [-2, -2, 48, 10, -4, -4, 15, 16, -2, -2],
        [-2, -2, -2, 11, 12, 13, 14, -2, -2, -2]
      ]
    },
    {
      name: 5,
      nRows: 7,
      nCols: 7,
      level: 7,
      start: [
        [0, 3, 33, 0, 0, 0, 0],
        [0, 1, 0, 0, 26, 27, 28],
        [0, 0, 6, 37, 0, 0, 0],
        [0, 40, 38, 0, 8, 0, 24],
        [0, 0, 0, 0, 0, 0, 16],
        [0, 0, 47, 0, 0, 14, 0],
        [49, 45, 0, 0, 0, 0, 18]
      ],
      solution: [
        [2, 3, 33, 32, 31, 30, 29],
        [4, 1, 34, 35, 26, 27, 28],
        [41, 5, 6, 37, 36, 25, 23],
        [42, 40, 38, 7, 8, 22, 24],
        [43, 39, 10, 9, 21, 15, 16],
        [44, 48, 47, 11, 20, 14, 17],
        [49, 45, 46, 12, 13, 19, 18]
      ]
    },
    {
      name: 6,
      nRows: 8,
      nCols: 8,
      level: 8,
      start: [
        [0, 0, 0, 8, 0, -2, -2, -2],
        [0, 0, 0, 0, 0, -2, -2, -2],
        [0, 29, 23, 11, 0, 0, -2, -2],
        [0, 0, 0, 13, 0, 0, -2, -2],
        [0, 0, 0, 16, 4, 1, 0, -2],
        [-2, -2, 0, 0, 0, 0, 38, -2],
        [-2, -2, -2, -2, 33, 0, 37, 0],
        [-2, -2, -2, -2, -2, -2, 0, 40]
      ],
      solution: [
        [27, 26, 25, 8, 9, -2, -2, -2],
        [28, 22, 24, 10, 7, -2, -2, -2],
        [21, 29, 23, 11, 14, 6, -2, -2],
        [20, 30, 12, 13, 15, 5, -2, -2],
        [19, 18, 31, 16, 4, 1, 2, -2],
        [-2, -2, 17, 32, 34, 3, 38, -2],
        [-2, -2, -2, -2, 33, 35, 37, 39],
        [-2, -2, -2, -2, -2, -2, 36, 40]
      ]
    },
    {
      name: 7,
      nRows: 8,
      nCols: 8,
      level: 8,
      start: [
        [9, 7, 0, 5, 0, 58, 57, 0],
        [10, 0, 6, 0, 1, 0, 37, 0],
        [0, 12, -3, -3, 0, 52, 38, 0],
        [0, 13, -3, 33, 0, 0, 0, 0],
        [0, 18, 17, 0, 31, -3, 0, 0],
        [19, 0, 0, 0, -3, -3, 0, 41],
        [0, 0, 24, 28, 29, 0, 45, 0],
        [0, 25, 26, 0, 0, 0, 0, 43]
      ],
      solution: [
        [9, 7, 4, 5, 2, 58, 57, 56],
        [10, 8, 6, 3, 1, 36, 37, 55],
        [11, 12, -3, -3, 35, 52, 38, 54],
        [14, 13, -3, 33, 34, 51, 53, 39],
        [15, 18, 17, 32, 31, -3, 50, 40],
        [19, 16, 23, 30, -3, -3, 49, 41],
        [20, 22, 24, 28, 29, 48, 45, 42],
        [21, 25, 26, 27, 47, 46, 44, 43]
      ]
    },
    {
      name: 8,
      nRows: 9,
      nCols: 9,
      level: 10,
      start: [
        [0, 60, 0, 52, 50, 0, 0, 0, 0],
        [0, 0, 59, 0, 0, 0, 23, 22, 0],
        [0, 66, 0, 0, 0, 45, 0, 27, 0],
        [0, 55, 56, 0, 0, 43, 0, 0, 28],
        [0, 0, 0, 0, 0, 0, 0, 0, 32],
        [0, 69, 78, 17, 81, 0, 0, 0, 0],
        [75, 0, 15, 0, 4, 1, 6, 40, 0],
        [0, 74, 13, 0, 0, 5, 0, 35, 0],
        [72, 0, 0, 0, 10, 0, 0, 0, 0]
      ],
      solution: [
        [63, 60, 61, 52, 50, 49, 48, 24, 25],
        [64, 62, 59, 53, 51, 47, 23, 22, 26],
        [65, 66, 54, 58, 46, 45, 21, 27, 29],
        [67, 55, 56, 57, 44, 43, 20, 30, 28],
        [68, 77, 79, 80, 18, 19, 42, 31, 32],
        [76, 69, 78, 17, 81, 3, 2, 41, 33],
        [75, 70, 15, 16, 4, 1, 6, 40, 34],
        [71, 74, 13, 14, 9, 5, 7, 35, 39],
        [72, 73, 12, 11, 10, 8, 36, 37, 38]
      ]
    },
    {
      name: 9,
      nRows: 10,
      nCols: 10,
      level: 10,
      start: [
        [4, 0, 0, 8, 11, 0, 0, 0, 0, 0],
        [0, 6, 7, 0, 0, 17, 0, 28, 0, 23],
        [-2, 0, 0, 0, 13, 0, 18, 0, 0, -2],
        [-2, 1, 0, 36, 0, 0, 30, 0, 0, -2],
        [-2, -2, 0, 40, -3, -3, 31, 0, -2, -2],
        [-2, -2, 0, 0, -3, -3, 0, 0, -2, -2],
        [-2, 0, 0, 0, 42, 76, 0, 0, 0, -2],
        [-2, 0, 54, 0, 0, 59, 75, 0, 0, -2],
        [0, 49, 46, 0, 61, 0, 65, 0, 0, 0],
        [0, 0, 47, 56, 0, 0, 0, 66, 0, 80]
      ],
      solution: [
        [4, 5, 9, 8, 11, 16, 27, 26, 25, 24],
        [3, 6, 7, 10, 12, 17, 15, 28, 22, 23],
        [-2, 2, 35, 34, 13, 14, 18, 29, 21, -2],
        [-2, 1, 37, 36, 33, 32, 30, 19, 20, -2],
        [-2, -2, 38, 40, -3, -3, 31, 72, -2, -2],
        [-2, -2, 39, 41, -3, -3, 73, 71, -2, -2],
        [-2, 53, 44, 43, 42, 76, 77, 74, 70, -2],
        [-2, 52, 54, 45, 60, 59, 75, 78, 69, -2],
        [51, 49, 46, 55, 61, 58, 65, 64, 79, 68],
        [50, 48, 47, 56, 57, 62, 63, 66, 67, 80]
      ]
    },
    {
      name: 10,
      nRows: 10,
      nCols: 10,
      level: 10,
      start: [
        [0, 57, 87, 86, 0, 0, 0, 0, 0, 0],
        [0, 58, 0, 0, 0, 20, 0, 0, 0, 15],
        [53, 0, 0, 0, 0, 81, 0, 77, 0, 0],
        [0, 0, 0, 0, 0, 0, 73, 0, 0, 12],
        [0, 92, 0, 94, 61, 71, 0, 75, 0, 25],
        [0, 50, 0, 0, 0, 0, 0, 28, 0, 0],
        [0, 0, 66, 67, 69, 0, 0, 27, 0, 0],
        [47, 0, 0, 0, 0, 97, 0, 0, 1, 8],
        [45, 0, 0, 38, 98, 0, 0, 32, 5, 0],
        [44, 42, 40, 0, 100, 0, 33, 0, 0, 3]
      ],
      solution: [
        [56, 57, 87, 86, 85, 79, 19, 18, 17, 16],
        [55, 58, 88, 84, 80, 20, 78, 22, 14, 15],
        [53, 54, 59, 89, 83, 81, 21, 77, 23, 13],
        [52, 91, 90, 60, 82, 72, 73, 76, 24, 12],
        [51, 92, 93, 94, 61, 71, 74, 75, 11, 25],
        [49, 50, 63, 62, 95, 70, 29, 28, 26, 10],
        [48, 64, 66, 67, 69, 96, 30, 27, 7, 9],
        [47, 46, 65, 68, 37, 97, 31, 6, 1, 8],
        [45, 43, 41, 38, 98, 36, 35, 32, 5, 2],
        [44, 42, 40, 39, 100, 99, 33, 34, 4, 3]
      ]
    },
    {
      name: 11,
      nRows: 7,
      nCols: 7,
      level: 7,
      start: [
        [0, 0, 0, 41, 0, 0, 0],
        [37, 0, 0, 0, 20, 0, 0],
        [35, 0, 0, 30, 0, 26, 0],
        [0, 44, 32, 16, 0, 0, 0],
        [0, 0, 0, 0, 17, 0, 5],
        [47, 0, 0, 10, 0, 1, 0],
        [49, 0, 0, 0, 8, 0, 3]
      ],
      solution: [
        [38, 39, 40, 41, 28, 21, 22],
        [37, 36, 42, 29, 20, 27, 23],
        [35, 43, 31, 30, 19, 26, 24],
        [34, 44, 32, 16, 15, 18, 25],
        [45, 33, 13, 14, 17, 6, 5],
        [47, 46, 12, 10, 7, 1, 4],
        [49, 48, 11, 9, 8, 2, 3]
      ]
    },
    {
      name: 12,
      nRows: 8,
      nCols: 8,
      level: 8,
      start: [
        [-2, -2, -2, 0, 0, -2, -2, -2],
        [-2, 4, 0, 0, 0, 46, 0, -2],
        [2, 0, 0, 38, 0, 0, 0, 48],
        [1, 0, 0, 0, 0, 13, 0, 0],
        [0, 30, 35, 0, 41, 40, 0, 11],
        [0, 34, 22, 27, 20, 0, 16, 17],
        [-2, 0, 23, 0, 0, 19, 0, -2],
        [-2, -2, -2, 0, 0, -2, -2, -2]
      ],
      solution: [
        [-2, -2, -2, 6, 45, -2, -2, -2],
        [-2, 4, 5, 44, 7, 46, 47, -2],
        [2, 3, 37, 38, 43, 8, 9, 48],
        [1, 36, 29, 42, 39, 13, 12, 10],
        [31, 30, 35, 28, 41, 40, 14, 11],
        [32, 34, 22, 27, 20, 15, 16, 17],
        [-2, 33, 23, 21, 26, 19, 18, -2],
        [-2, -2, -2, 24, 25, -2, -2, -2]
      ]
    },
    {
      name: 13,
      nRows: 8,
      nCols: 8,
      level: 8,
      start: [
        [0, 0, 0, 0, 28, 27, 23, 0],
        [0, 33, 0, 0, 0, 25, 0, 0],
        [0, 0, -3, -3, 44, 0, 0, 0],
        [0, 36, -3, 0, 0, 0, 19, 0],
        [37, 0, 5, 0, 46, -3, 0, 17],
        [0, 0, 4, 0, -3, -3, 0, 0],
        [0, 10, 11, 0, 0, 0, 55, 0],
        [1, 0, 0, 12, 13, 56, 0, 58]
      ],
      solution: [
        [32, 31, 30, 29, 28, 27, 23, 22],
        [34, 33, 42, 43, 26, 25, 24, 21],
        [35, 41, -3, -3, 44, 49, 50, 20],
        [40, 36, -3, 45, 48, 51, 19, 18],
        [37, 39, 5, 47, 46, -3, 52, 17],
        [38, 3, 4, 6, -3, -3, 16, 53],
        [2, 10, 11, 7, 14, 15, 55, 54],
        [1, 9, 8, 12, 13, 56, 57, 58]
      ]
    },
    {
      name: 14,
      nRows: 9,
      nCols: 9,
      level: 10,
      start: [
        [22, 0, 33, 0, 0, 0, 0, 0, 0],
        [0, 24, 0, 31, 35, 36, 41, 0, 0],
        [20, 0, 28, 0, 2, 0, 42, 46, 0],
        [0, 26, 0, 0, 1, 4, 5, 47, 0],
        [14, 0, 0, 0, 0, 0, 0, 50, 0],
        [0, 0, 16, 0, 0, 71, 0, 0, 52],
        [0, 0, 0, 0, 70, 73, 54, 0, 81],
        [0, 0, 61, 0, 58, 0, 0, 0, 0],
        [0, 62, 0, 60, 59, 56, 77, 0, 0]
      ],
      solution: [
        [22, 23, 33, 34, 37, 38, 39, 40, 44],
        [21, 24, 32, 31, 35, 36, 41, 43, 45],
        [20, 25, 28, 30, 2, 3, 42, 46, 48],
        [19, 26, 27, 29, 1, 4, 5, 47, 49],
        [14, 18, 17, 9, 8, 7, 6, 50, 51],
        [13, 15, 16, 10, 72, 71, 74, 53, 52],
        [65, 12, 11, 69, 70, 73, 54, 75, 81],
        [64, 66, 61, 68, 58, 57, 55, 76, 80],
        [63, 62, 67, 60, 59, 56, 77, 78, 79]
      ]
    }
  ];
